package com.fruit.constants;

public class PayConstant {

	public enum PayMode{
		alipay("alipay"),
		wechat("wechat");
		String value;
		PayMode(String value){
			this.value = value;
		}
		public String getValue() {
			return value;
		}
		public void setValue(String value) {
			this.value = value;
		}
		public boolean equals(String value){
			return this.value.equals(value);
		}
	}
	
	public enum WechatPayType{
		APP("APP");
		String value;
		WechatPayType(String value){
			this.value = value;
		}
		public String getValue() {
			return value;
		}
		public void setValue(String value) {
			this.value = value;
		}
	}
	
	public enum State{
		notpay("00"),
		pay("01"),
		cancel("02"),
		faile("03");
		String value;
		State(String value){
			this.value = value;
		}
		public String getValue() {
			return value;
		}
		public void setValue(String value) {
			this.value = value;
		}
		public boolean equals(String value){
			return this.value.equals(value);
		}
	}
	
	public enum BackState{
		notback("00"),
		prebackok("01"),
		prebackfaile("02"),
		backok("03"),
		backfaile("04");
		String value;
		BackState(String value){
			this.value = value;
		}
		public String getValue() {
			return value;
		}
		public void setValue(String value) {
			this.value = value;
		}
		public boolean equals(String value){
			return this.value.equals(value);
		}
	}
	public enum PayValue{
		test("00"),
		normal("01");
		String value;
		PayValue(String value){
			this.value = value;
		}
		public String getValue() {
			return value;
		}
		public void setValue(String value) {
			this.value = value;
		}
		public boolean equals(String value){
			return this.value.equals(value);
		}
	}
	public enum Type{
		consume("00"),
		recharge("01");
		String value;
		Type(String value){
			this.value = value;
		}
		public String getValue() {
			return value;
		}
		public void setValue(String value) {
			this.value = value;
		}
		public boolean equals(String value){
			return this.value.equals(value);
		}
	}
	
	public enum RHandelState{
		no("00"),
		yes("01");
		String value;
		RHandelState(String value){
			this.value = value;
		}
		public String getValue() {
			return value;
		}
		public void setValue(String value) {
			this.value = value;
		}
		public boolean equals(String value){
			return this.value.equals(value);
		}
	}
	public static String CODE_SUCCESS = "SUCCESS";
}
